package com.shiqu.web.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by admin on 2016/6/6.
 */
@Controller
@RequestMapping("/page")
public class PageController {

    //index页面
	
	@RequestMapping("/index")
	public String index(){

        return "index";
	}
	
	@RequestMapping("/query")
	@RequiresPermissions("item:query")
	public String query(){

        return "index";
	}

    //index页面
    @RequestMapping("/login")
    public String login(){

        return "login";
    }
    //用户退出
    @RequestMapping("/404")
    public String error404(){

        return "404";
    }
    
}
